<?php
namespace app\index\model;
use think\Model;
class Member extends Base{
    protected $resultSetType = 'collection';

    public function files()
    {
        return $this->hasOne('file','id','head_pic');
    }

    public function carts()
    {
        return $this->hasMany('cart','m_id','id');
    }

    public function merchants()
    {
        return $this->hasOne('merchant','m_id','id');
    }

}